﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zocono.WCS.Infrastructure.ApllicationDto.Enums;

namespace Zocono.WCS.Infrastructure.ApllicationDto.WCSTaskDto
{
    public class HistoryWorkTaskInfoDto
    {
        public long ID { get; set; }
        public long RouteID { get; set; }
        public string FromStation { get; set; }
        public string ToStation { get; set; }
        public int Priority { get; set; }
        public string PalletCode { get; set; }
        public int TaskCode { get; set; }
        /// <summary>
        /// 取值枚举EnumTaskProcessState
        /// </summary>
        public EnumTaskProcessState TaskProcessState { get; set; }
        /// <summary>
        /// 取值枚举EnumTaskState
        /// </summary>
        public EnumTaskState TaskState { get; set; }
        /// <summary>
        /// 取值枚举EnumTaskType
        /// </summary>
        public EnumTaskType TaskType { get; set; }
        public DateTime SaveTime { get; set; }
        public DateTime UpdateTime { get; set; }
        public long WmsTaskCode { get; set; }
        public long DependWmsTaskCode { get; set; }
        public string WmsFromStation { get; set; }
        public string WmsFromPosition { get; set; }
        public string WmsToStation { get; set; }
        public string WmsToPosition { get; set; }
        public long CurrentRounteDetailID { get; set; }
        /// <summary>
        /// 取值枚举EnumDetailTaskState
        /// </summary>
        public EnumDetailTaskState CurrentDetailTaskState { get; set; }
        /// <summary>
        /// 取值枚举EnumDispatchType
        /// </summary>
        public EnumDispatchType CurrentDispatchType { get; set; }
        public string CurrentFromEquipment { get; set; }
        public string CurrentFromCargo { get; set; }
        public string CurrentToEquipment { get; set; }
        public string CurrentToCargo { get; set; }
        public DateTime CurrentCreateTime { get; set; }
        public DateTime CurrentUpdateTime { get; set; }
        /// <summary>
        /// 上传WMS状态：0-未上传；1-成功；2-失败
        /// 取值枚举EnumUploadWmsState
        /// </summary>
        public EnumUploadWmsState UploadWmsState { get; set; } = 0;
        /// <summary>
        /// 上传WMS时间
        /// </summary>
        public DateTime UploadWmsTime { get; set; } = new DateTime(1900, 1, 1);
    }
}
